package com.umeng.analytics.social;

import android.text.TextUtils;

import com.umeng.analytics.pro.by;

import java.util.Locale;

public class UMPlatformData {
    public enum GENDER {
        MALE(0) {
            public final String toString() {
                return String.format(Locale.US, "Male:%d", new Object[]{Integer.valueOf(this.value)});
            }
        },
        FEMALE(1) {
            public final String toString() {
                return String.format(Locale.US, "Female:%d", new Object[]{Integer.valueOf(this.value)});
            }
        };

        public int value;

        private GENDER(int i) {
            this.value = i;
        }
    }


    public enum UMedia {
        SINA_WEIBO {
            public final String toString() {
                return "sina";
            }
        },
        TENCENT_WEIBO {
            public final String toString() {
                return "tencent";
            }
        },
        TENCENT_QZONE {
            public final String toString() {
                return "qzone";
            }
        },
        TENCENT_QQ {
            public final String toString() {
                return "qq";
            }
        },
        WEIXIN_FRIENDS {
            public final String toString() {
                return "wxsesion";
            }
        },
        WEIXIN_CIRCLE {
            public final String toString() {
                return "wxtimeline";
            }
        },
        RENREN {
            public final String toString() {
                return "renren";
            }
        },
        DOUBAN {
            public final String toString() {
                return "douban";
            }
        }
    }


    private UMedia meida;
    private String usid;
    private String weiboId;
    private String name;
    private GENDER gender;

    public UMPlatformData(UMedia arg2, String arg3) {

        this.usid = "";
        this.weiboId = "";
        if (arg2 == null || (TextUtils.isEmpty(((CharSequence) arg3)))) {
            by.e("parameter is not valid");
        } else {
            this.meida = arg2;
            this.usid = arg3;
        }
    }

    public GENDER getGender() {
        return this.gender;
    }

    public UMedia getMeida() {
        return this.meida;
    }

    public String getName() {
        return this.name;
    }

    public String getUsid() {
        return this.usid;
    }

    public String getWeiboId() {
        return this.weiboId;
    }

    public boolean isValid() {
        boolean v0 = this.meida == null || (TextUtils.isEmpty(this.usid)) ? false : true;
        return v0;
    }

    public void setGender(GENDER arg1) {
        this.gender = arg1;
    }

    public void setName(String arg1) {
        this.name = arg1;
    }

    public void setWeiboId(String arg1) {
        this.weiboId = arg1;
    }

    public String toString() {
        return "UMPlatformData [meida=" + this.meida + ", usid=" + this.usid + ", weiboId=" + this.weiboId + ", name=" + this.name + ", gender=" + this.gender + "]";
    }
}

